home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Acao / 3FootNinja.swf / scripts / DefineButton2_348 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2007-05-31  |  718 b   |  29 lines

  1. on(press){
  2.    if(_root.myLives > 0)
  3.    {
  4.       _root.gameSound.stop();
  5.       _root.ninjaDead._name = "ninja";
  6.       _root.initGame();
  7.       _root.resetBonus();
  8.       _root.ninja.gotoAndStop(1);
  9.       _root.ninja._xscale = Math.abs(_root.ninja._xscale);
  10.       _root.ninja._x = 100;
  11.       _root.ninja._y = 365;
  12.       _root.dead._name = "warrior";
  13.       _root.warrior.gotoAndStop(1);
  14.       _root.warrior._x = 515;
  15.       _root.warrior._y = 365;
  16.       _root.gameSound.start(0,1000);
  17.       _root.gameSound.setVolume(35);
  18.       if(_root.myMusic._currentframe == 2)
  19.       {
  20.          _root.gameSound.stop();
  21.       }
  22.       gotoAndStop(1);
  23.    }
  24.    else
  25.    {
  26.       _root.gotoAndStop("loading");
  27.    }
  28. }
  29.